/**
  ******************************************************************************
  * @file    mh2203_it.c
  * @author  NONE
  * @version NONE
  * @date    NONE
  * @brief   NONE
  ******************************************************************************/
#include "mh2203_it.h"



void NMI_Handler(void)
{
}

void HardFault_Handler(void)
{
  /* Go to infinite loop when Hard Fault exception occurs */
//   while (1)
//   {
// 		printf("HardFault \r\n!");
//   }
    //Wwdg_Init();
    printf("HardFault \r\n!");

   // 短暂延时，确保错误信息被发送出去
    for(volatile int i = 0; i < 1000000; i++);
    // 触发系统复位
    NVIC_SystemReset();
    while (1);

}

void MemManage_Handler(void)
{
  /* Go to infinite loop when Memory Manage exception occurs */
  while (1)
  {
  }
}


void BusFault_Handler(void)
{
  /* Go to infinite loop when Bus Fault exception occurs */
  while (1)
  {
  }
}

void UsageFault_Handler(void)
{
  /* Go to infinite loop when Usage Fault exception occurs */
  while (1)
  {
  }
}

//void SVC_Handler(void)
//{
//}
//
void DebugMon_Handler(void)
{
}

//void PendSV_Handler(void)
//{
//}
/******************************************************************************/
/*                 mh2203 Peripherals Interrupt Handlers                   */
/*  Add here the Interrupt Handler for the used peripheral(s) (PPP), for the  */
/*  available peripheral interrupt handler's name please refer to the startup */
/*  file (startup_mh2203_xx.s).                                            */
/******************************************************************************/
//__IO uint32_t cnt;
//void SysTick_Handler(void)
//{
//	cnt ++;
//}

uint32_t GetTick(void)
{
	//return cnt;
}
